package com.zxl.mytest9;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
    
    public static void main(String[] args) {
//        String str = "java.lang.Object";
//        IntStream chars = str.chars();
//        chars.forEach(a -> {
//            System.out.println(a);
//            System.out.println(Integer.toBinaryString(a));
//        });
//        System.out.println(chars.toString());
//        
//        System.out.println(str.hashCode());
        String str = "15454adwad21";
        Pattern pattern = Pattern.compile("(\\d+)(?:.+)");
        Matcher mat = pattern.matcher(str);
        while (mat.find()) {
            System.out.println(mat.group(1));
        }
        
//        Pattern pattern = Pattern.compile("(?<=\\()(.+?)(?=\\))");
//        Matcher matcher = pattern.matcher("教师10(0010)教师11(0011)");
//        while(matcher.find()){
//            System.out.println(matcher.group());
//        }
        
        ArrayList<Integer> integers = new ArrayList<>();
        integers.add(null);
        integers.add(1,1);
        System.out.println(integers.get(0));
        System.out.println(integers.get(1));
    }
}
